# -*-* encoding:UTF-8 -*-
# author            : mengy
# date              : 2018/12/14
# python-version    : Python 3.7.0
# description       : 多人聊天室-服务端启动脚本

import asyncore
from com.python.demo.mutil_chatting_room.entities.ChatServer import ChatServer

PORT = 6666  # 服务端端口

if __name__ == '__main__':
    s = ChatServer(("127.0.0.1",PORT))
    try:
        print('多人聊天室服务端启动，地址:127.0.0.1:%d \n'%PORT)
        asyncore.loop()
    except KeyboardInterrupt as e:
        print("多人聊天室服务端停止！")
